import request from '@/utils/request'

// 查询货道锁定表列表
export function listHdLock(query) {
  return request({
    url: '/ddmachine/hdLock/list',
    method: 'get',
    params: query
  })
}

// 查询货道锁定表详细
export function getHdLock(machineId) {
  return request({
    url: '/ddmachine/hdLock/' + machineId,
    method: 'get'
  })
}

// 新增货道锁定表
export function addHdLock(data) {
  return request({
    url: '/ddmachine/hdLock',
    method: 'post',
    data: data
  })
}

// 修改货道锁定表
export function updateHdLock(data) {
  return request({
    url: '/ddmachine/hdLock',
    method: 'put',
    data: data
  })
}

// 删除货道锁定表
export function delHdLock(machineId) {
  return request({
    url: '/ddmachine/hdLock/' + machineId,
    method: 'delete'
  })
}
